package core.manager.battle
{
	public class BattleManager
	{
		private static var _battleManager:IBattleManager;
		
		public static function createBattleManager(A:Array , B:Array , senceKey:String , isMonster:Boolean = true ,modle:String = "single"):void
		{
			if(_battleManager)
			{
				_battleManager.dispose();
				_battleManager = null;
			}
			if(modle == "single")
			{
				_battleManager = new SingleBattleManager();
				_battleManager.init(A , B , senceKey , isMonster);
			}
		}
		
		public static function get battleManager():IBattleManager
		{
			return _battleManager;
		}
	}
}